<% layout("/WEB-INF/view/console/skins/skin_2/layout.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boOrderOperLog_form" id="boOrderOperLog_form" class='form-inline'>
                            <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='sys_user_id'  >sys_...：</label>
 <input  onkeyup='boOrderOperLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='sysUserId' name='sysUserId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='操作类型' >操作类型：</label>
 <select class="form-control" id="operType" name="operType">
 <option  value="">请选择...</option>
 	<option  value="1">确认订单</option>
 	<option  value="2">订单退货</option>
 	<option  value="3">订单发货</option>
 	<option  value="4">线下打款确认</option>
 </select>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='订单编号'  >订单编号：</label>
 <input  onkeyup='boOrderOperLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='orderId' name='orderId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='操作描述'  >操作描述：</label>
 <input  onkeyup='boOrderOperLogConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='operDescription' name='operDescription' placeholder=''>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boOrderOperLogQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boOrderOperLogReset'>重置</button>
                    </div>
                </div>
                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boOrderOperLog" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_order_oper_log/json"
                                         data-pagination="true"
                                         data-query-params="boOrderOperLogLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#boOrderOperLogToolbar">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='orderOperId' data-visible='false'>ID</th>
  <th data-sortable='true' data-field='sysUserId'>sys_user_id</th>
  <th data-field='operType' data-sortable='true' data-formatter='boOrderOperLogoper_typeFormatter'>操作类型</th>
  <th data-sortable='true' data-field='orderId'>订单编号</th>
  <th data-sortable='true' data-field='operDescription'>操作描述</th>
  <th data-sortable='true' data-field='createTime' data-formatter="consoleTableDateFormat">创建时间</th>

                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boOrderOperLogConsoleGrid =new consoleGrid({table_id:"boOrderOperLog"});
     boOrderOperLogConsoleGrid.init();
     function boOrderOperLogTableOperate(value){
         return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"boOrderOperLog\",\"${ctxPath}/console/bo_order_oper_log/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
     }
    function boOrderOperLogLoadParam(params){
        params.query=boOrderOperLogQueryString();

        return params;
    }
     function boOrderOperLogQueryString() {
         var objQuery = new Object();
                objQuery.sysUserId=$('#sysUserId').val()==''?null:$('#sysUserId').val(); 
     objQuery.operType=$('#operType').val()==''?null:$('#operType').val(); 
     objQuery.orderId=$('#orderId').val()==''?null:$('#orderId').val(); 
     objQuery.operDescription=$('#operDescription').val()==''?null:$('#operDescription').val(); 
 
         var queryString = JSON.stringify(objQuery);
         return queryString;
     }

     function boOrderOperLogoper_typeFormatter(value) 
   { 
       var showValue=''; 
       switch(value+''){
       case '1': 
       showValue = '确认订单';
       break;
       case '2': 
       showValue = '订单退货';
       break;
       case '3': 
       showValue = '订单发货';
       break;
       case '4': 
       showValue = '线下打款确认';
       break;
       }
    if(showValue.indexOf('不')!=-1||showValue.indexOf('否')!=-1||showValue.indexOf('禁')!=-1){    
       return '<span class="label label-warning">'+showValue+'</span>';
   }else{
       return '<span class="label label-info">'+showValue+'</span>';
   }
   }

 </script>
<%} %>
 